<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div class="relative">
        <div class="position"></div>
    </div>
    
</body>
<style>
    .position{
        width: 300px;
        height: 200px;
        background-color: red;
        position: absolute;
        left: 100px;
        top: 150px;
    }
    .relative{
        position: relative;
        width:700px;
        height: 600px;
        background-color: royalblue;
        left: 300px;
        top: 1000px;
    }
</style>
</html>